//
//  Sender.h
//  ImageTransfer
//
//  Created by ly on 13-7-8.
//  Copyright (c) 2013年 Lei Yan. All rights reserved.
//

#import <Foundation/Foundation.h>
@class Sender;
@protocol senderDelegate <NSObject>

@optional
- (void)sendrDateFirst;

@end

@interface Sender : NSObject
@property(nonatomic, weak)  id<senderDelegate> Delegate;


@property(nonatomic, copy)  NSString *remoteAddress;
@property(nonatomic, assign) UInt16 remotePort;

- (id)initWithRemoteAddress:(NSString *)address onPort:(UInt16)port;
- (void)sendData:(NSData *)data withFileName:(NSString *)fieName;

@property (nonatomic, strong) NSMutableData *readData;

@property (nonatomic, strong) NSData *urlData;

@end
